package day10;

import java.util.Objects;
//Objects的方法

public class Demo02 {
    public static void main(String[] args) {
        String s = null;
        String c = "多多";
        System.out.println(Objects.equals(s,c));//false
        System.out.println(Objects.isNull(s));//判断是否为空  true
    }
}
